package com.littlecar.security.config;

import org.springframework.stereotype.Component;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * 描述：
 *
 * @author littlecar
 * @date 2020/2/29 15:26
 */
@Component
public class URIFilter implements Filter {

    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        HttpServletRequest httpServletRequest=(HttpServletRequest) request;
        String requestURI = httpServletRequest.getRequestURI();
        System.out.println("URI===========" + requestURI);
        chain.doFilter(request,response);
    }
}
